package com.example.studyFile.jsonFileTest;

import com.alibaba.fastjson.JSON;

import javax.lang.model.element.VariableElement;
import javax.lang.model.util.AbstractAnnotationValueVisitor6;
import java.util.ArrayList;
import java.util.Date;

/**
 * @author yangjicong
 * @date 2022/1/6
 */

public class JSONField_01 {

	public static void main(String[] args) {
		// name();
		format();
	}


	public static void name(){
		ActivityMarketingRespBO activityMarketingRespBO = new ActivityMarketingRespBO();
		activityMarketingRespBO.setDaySendVouCnt(100L);
		activityMarketingRespBO.setDay2SendVouCnt(200L);
		String string = JSON.toJSONString(activityMarketingRespBO);
		System.out.println(string);
	}

	public static void format(){
		ActivityMarketingRespBO activityMarketingRespBO = new ActivityMarketingRespBO();
		activityMarketingRespBO.setDaySendVouCnt(100L);
		activityMarketingRespBO.setDay2SendVouCnt(200L);
		activityMarketingRespBO.setDate(new Date());
		String string = JSON.toJSONString(activityMarketingRespBO);
		System.out.println(string);
	}
}
